import http from '../common/http.js'
//注册
export const registerApi = (parm)=>{
	return http.post("/api/wxUser/register",parm)
}
//登录
export const loginApi = (parm)=>{
	return http.post("/api/wxUser/login",parm)
}
//我的收藏
export const getMyCollectApi = (parm)=>{
	return http.get("/api/goods/getMyCollect",parm)
}
//我的寻物、招领
export const getMyFindOrClaimApi = (parm)=>{
	return http.get("/api/goods/getMyFindOrClaim",parm)
}
//修改密码
export const updatePassApi = (parm)=>{
	return http.post("/api/wxUser/updatePass",parm)
}
//修改个人信息
export const editApi = (parm)=>{
	return http.post("/api/wxUser/edit",parm)
}
//根据id查询用户信息
export const getInfoApi = (parm)=>{
	return http.get("/api/wxUser/getInfo",parm)
}
//忘记密码
export const forgetApi = (parm)=>{
	return http.post('/api/wxUser/forget',parm)
}
//新增评论
export const addCommentApi = (parm)=>{
	return http.post('/api/comment/addComment',parm)
}
//
export const commentListApi = (parm)=>{
	return http.get('/api/comment/commentList',parm)
}